/** 
 * Project Name:tinysql 
 * File Name:SqlTypeFactory.java 
 * Package Name:com.wdy.golden.tinysql.extend 
 * Date:2021年4月7日下午9:07:17 
 * 
*/  
package com.wdy.golden.tinysql.extend;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.wdy.golden.tinysql.util.StringUtil;

/** 
 * ClassName: SqlTypeFactory <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2021年4月7日 下午9:07:17 <br/> 
 * @author   DongYe_Wu 
 * @version
 * @see       
 */
public class SqlTypeFactory {
	private static final Logger log = LoggerFactory.getLogger(SqlTypeFactory.class);
	
	public SqlTypeConverter getSqlTypeConverter(String DatabaseProductName) {
		if(StringUtil.equalsIgnoreCase("Oracle", DatabaseProductName)) {
			return new OracleSqlTypeConverter();
		}else if(StringUtil.equalsIgnoreCase("Microsoft SQL Server", DatabaseProductName)) {
			return new MssqlSqlTypeConverter();
		}else {
			return new CommonSqlTypeConverter();
		}
	}
}
